<?php

namespace Modules\Common\Models\Validation;


/**
 *@property int $id
 *@property string $tag
 *@property string $file_name
 *@property int $size
 *@property string $path
 *@property string $ip
 *@property string $md5
 *@property int $removed
 *@property int $used
 *@property string $created_at
 *@property string $updated_at
 *@property string $deleted_at
 */
trait FileValidation 
{


    public function createRules()
    {
         return [
            'rules' => [
                'tag'=>'between:0,32',
                'file_name'=>'between:0,150',
                'size'=>'integer',
                'path'=>'between:0,128',
                'ip'=>'between:0,32',
                'md5'=>'between:0,32',
                'removed'=>'integer',
                'used'=>'integer',
                
            ],
            'messages' => [
            ],
            'customAttributes' => [
            ]
        ];
    }

    public function updateRules()
    {
         return [
            'rules' => [
                'tag'=>'between:0, 32',
                'file_name'=>'between:0, 150',
                'size'=>'integer',
                'path'=>'between:0, 128',
                'ip'=>'between:0, 32',
                'md5'=>'between:0, 32',
                'removed'=>'integer',
                'used'=>'integer',
                
            ],
            'messages' => [
            ],
            'customAttributes' => [
            ]
        ];
    }


}
